#pragma once

#include "Includes.h"
#include "Thread.h"
#include "IConnection.h"
#include "BipBuffer.h"

class BluetoothConnection : public IConnection {

public:
	//Constructors
	BluetoothConnection(SOCKADDR_BTH address, SOCKET client);
	BluetoothConnection();


	// IConnection
	void sendString( std::string s)		override;
	int read(char* buf, int bufSize)	override;
	void close()						override;
	std::string toString()				override;

private:
	SOCKADDR_BTH mAddress;
	SOCKET mSocket;

	BipBuffer mBuffer;
};